//
//  NetWorkConfig.h
//  callmed
//
//  Created by houwei on 2019/4/16.
//  Copyright © 2019年 xx. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <CocoaLumberjack/CocoaLumberjack.h>
#import <CocoaLumberjack/DDLogMacros.h>
#import <CocoaLumberjack/DDLog.h>

#ifdef DEBUG
static const int ddLogLevel = DDLogLevelVerbose;
#else
static const int ddLogLevel = DDLogLevelOff;//无日志
#endif

#ifdef DEBUG
#define DLog(frmt, ...) LOG_MAYBE(LOG_ASYNC_ENABLED, LOG_LEVEL_DEF, DDLogFlagVerbose, 0, nil, __PRETTY_FUNCTION__, frmt, ##__VA_ARGS__)
#else
#define DLog(s, ... )
#endif

NS_ASSUME_NONNULL_BEGIN

@interface NetWorkConfig : NSObject

/**
 初始化主机地址
 */
+ (void)initNetWork;

/**
 主机地址

 @return -
 */
+ (NSString*)baseUrl;


/**
 网络是否连接

 @return -
 */
+ (BOOL)isConnect;

@end

NS_ASSUME_NONNULL_END
